<template>
    <div>
      关于我们
      <div v-for="item in dataList.banner">
        {{item.sub_title}}
      </div>
    </div>
</template>
<script lang="ts" setup>
import {ref,reactive} from "vue";
import {getHomepage} from  "@/api/index"
const dataList = reactive(
    {
      banner: [],
      sports: []
    }
);
getHomepage().then(response => {
  dataList.banner = response.data.banner
  dataList.sports = response.data.sports
  console.log(dataList)
});
</script>
<style scoped>

</style>
